import { toDateString, constantFormatHtml } from '@/utils'

export default [
  {
    dataIndex: 'UserID',
    title: '账号ID',
    width: 90
  },
  {
    dataIndex: 'UserName',
    title: '账号',
  },
  {
    dataIndex: 'NickName',
    title: '昵称',
  },
  {
    dataIndex: 'IsSuper',
    title: '用户类型',
    customRender: (record) => {
      return constantFormatHtml(record.value, 'UserPower')
    }
  },
  {
    dataIndex: 'RoleList',
    title: '角色',
  },
  {
    dataIndex: 'CreateTime',
    title: '创建时间',
    width: 130,
    customRender: (record) => {
      return toDateString(record.value, "yyyy-MM-dd HH:mm")
    }
  },
  {
    dataIndex: 'Action',
    title: '操作',
    width: 100,
    align: 'center'
  }
]
